﻿using PMS.Data.Entities.Settings;

namespace PMS.Services.EventHandler.Caching
{
    /// <summary>
    /// Represents a Setting cache event 
    /// DavidLee 2020/11/27 :
    /// SettingService中对Setting增/删/改 操作中已经对SettingCacheKey进行了Clear操作，
    /// 此处主要针对依赖了Setting的其他Key(如果有)进行缓存清理操作
    /// </summary>
    public partial class SettingCacheEventHandler : CacheEventHandler<Setting>
    {
        /// <summary>
        /// 分别针对Insert/Update/Delete进行操作，
        /// 如果操作逻辑相同，可以调用 ClearCache(Setting entity)
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="entityEventType"></param>
        protected override void ClearCache(Setting entity, EntityEventType entityEventType)
        {
            //ClearCache(entity);            
        }
        /// <summary>
        /// Clear cache data
        /// </summary>
        /// <param name="entity">Entity</param>
        protected override void ClearCache(Setting entity)
        {
             
        }
    }

}
